# 关键字参数,默认参数

# python方法调用时可以指定参数,这样可以做到参数无序,
# python方法定义可以直接定义参数默认值


def showinfo(name: str, age: int, active: bool=False):
    print("名字: ", name)
    print("年龄: ", age)
    print("是否激活: ", active)
    print("-----------")


showinfo("gaowen", 18, True)
showinfo(age=40, name="Zhenli", active=False)
showinfo(age=22, name="兔兔")
showinfo(-1, "假兔兔")     # 这个检查也就是相当于编译期检查
showinfo("假兔兔", -1)

